//
//  KDPatrolGetMyTaskInfoModel.m
//  PublicSentimentMonitorSystem
//
//  Created by 魏强 on 15/6/19.
//  Copyright (c) 2015年 魏强. All rights reserved.
//

#import "KDPatrolGetMyTaskInfoModel.h"

@implementation KDPatrolGetMyTaskInfoModel
- (void)setParentName:(NSString *)parentName
{
    _parentName = parentName;
    if ([self.parentName isEqualToString:@"专题"]) {
        self.ttype = @"2";
    }else if ([self.parentName isEqualToString:@"红名单"]){
        self.ttype = @"3";
    }else if ([self.parentName isEqualToString:@"网站监测"]){
        self.ttype = @"1";
    }else if ([self.parentName isEqualToString:@"黑名单"]){
        self.ttype = @"4";
    }else{
        self.method = @"error";
    }
}
- (void)setTtype:(NSString *)ttype{
    _ttype = ttype;
    if ([ttype isEqualToString:@"1"]) {
        self.method = @"query_ws";
    }else if ([ttype isEqualToString:@"2"]){
        self.method = @"query_spec";
    }else if ([ttype isEqualToString:@"3"]){
        self.method = @"query_rp";
    }else if ([ttype isEqualToString:@"4"]){
        self.method = @"myTask_black";
    }
}
@end
